package Lesson14;

public class PersonDemo {
	public static void main(String[] args) {
		int x = 3;
		String s = new String();
		
		Person ivan = new Person();
		Person maria = new Person();
		
		// Ivan
		ivan.name = "Ivan";
		ivan.age = 25;
		ivan.personalNumber = "8612025218";
		ivan.sex = 'm';
		ivan.weight = 80.5;
		
		// Maria
		maria.name = "Mariya";
		maria.age = 21;
		maria.personalNumber = "8203301201";
		maria.sex = 'f';
		maria.weight = 55.0;
		
		System.out.println("Ivan's health is " + ivan.health);
		System.out.println("Ivan's hunger is " + ivan.hunger);
		
		System.out.println("Maria's health is " + maria.health);
		System.out.println("Maria's hunger is " + maria.hunger);
		
		ivan.eat(10);
		maria.walk();
		
		System.out.println("Ivan's health is " + ivan.health);
		System.out.println("Ivan's hunger is " + ivan.hunger);
		
		System.out.println("Maria's health is " + maria.health);
		System.out.println("Maria's hunger is " + maria.hunger);
	}
}
